﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace WeFeTeLib.CodeIgniter
{
    class CodeIgniterFramework : Framework
    {
        public CodeIgniterFramework()
            : base()
        {
            name = "CodeIgniter";
        }

        public override void setDefaultFiles()
        {
            frameworkFiles.Add(new File("asdf.htm", 
                                        "#999 1px solid;", HttpStatusCode.NotFound));
            frameworkFiles.Add(new File("/user_guide/index.html", "CodeIgniter User Guide",
                                        HttpStatusCode.OK));
        }

        public override void setDefaultCookies()
        {
            frameworkCookies.Add(new Cookie("ci_session", 0));
        }

        public override void setDefaultFolders()
        {
            frameworkFolders.Add(new Folder("system/", System.Net.HttpStatusCode.Forbidden));
        }

        public override void setDefaultHeaders()
        {
        }
    }
}
